package apis.user;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-user")
public interface IUserClient {
    //获取评论作者信息
    @PostMapping("/getUser/{userId}")
    ResponseResult<ApUser> getUser(@PathVariable Integer userId);

}
